package qsl.utils;

import java.util.ArrayList;
import java.util.List;

public class array {
	public static void main(String[] args){
		List<Long> xx = convert("10.1.1.3".split("\\."));
		System.out.print("count:"+xx.toString());
	}
	
	@SuppressWarnings("unchecked")
	public static <T, O> List<O> convert(T[] array) {
		List<O> list = new ArrayList<O>();
		for(T item: array) list.add((O)item);
		return list;
	}
}
